export class ElevatorUtils {
    constructor(private readonly floorHeight: number, private readonly baseY: number) {}

    calcFloor(y: number) {
        return Math.floor((y - this.baseY) / this.floorHeight) + 1;
    }

    calcFloorY(floor: number) {
        return this.baseY + this.floorHeight * (floor - 1);
    }
}
